﻿@model Codapalooza.Models.Project

@{
    ViewBag.Title = "Create";
}

<h1>Create</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@*@using (Html.BeginForm())
{
*@ 
<form action="/Project/Create" method="post">
   @Html.ValidationSummary(true)
    <fieldset>
        <legend>Project</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.ProjectName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProjectName)
            @Html.ValidationMessageFor(model => model.ProjectName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Desciption)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Desciption, new { style = "width: 100%; height: 150px;" })
            @Html.ValidationMessageFor(model => model.Desciption)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ElevetorPitch)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.ElevetorPitch, new { style = "width: 100%; height: 75px;" })
            @Html.ValidationMessageFor(model => model.ElevetorPitch)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Technologies)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Technologies)
            @Html.ValidationMessageFor(model => model.Technologies)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
@*}*@
</form>
<div>
    @Html.ActionLink("Back to List", "Index")
</div>

